const a = async function (
  page,
  { transfer: { checkRow } },
  { dayjs, dc: { store, http } }
) {
  const year = dayjs(store.get("user", "date")).format("YYYY");
  const { data, total } = await http.post({
    url: "/nyk/search/listMoney",
    params: {
      selectType: "2",
      enterpriseGuid: checkRow.enterpriseGuid,
      ...page,
      year,
    },
  });
  data.forEach((item) => {
    const { ENTERPRISECODE, ENTERPRISENAME, PROGRAMNAME, MONEY, MONEY4, ZXL } =
      item;
    item.enterpriseCode = ENTERPRISECODE;
    item.enterpriseName = ENTERPRISENAME;
    item.programName = PROGRAMNAME;
    item.budget = MONEY;
    item.pay = MONEY4;
    item.zxl = ZXL;
  });
  return {
    items: data,
    total,
  };
};
